<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title></title>
		<link rel="stylesheet" type="text/css"
			href="${contextPath}/resource/css/default.css" />
		<script src="${contextPath}/resource/js/index.js"></script>
	<script language="javascript" type="text/javascript">

		</script>
		
	</head>

	<body onload="updateTrColor()">
		<table class="menu_table">
			<tr>
				<th>
					代码管理<input type="button"  value="" onclick="showSearchDiv(this)" class="search_show_style" align="middle"/>
				</th>
			</tr>
		</table>
			<div class="listtable">
<div class="secondDiv">

	<form action="codeClassAction_list.do" method="post">
		<div id="search_div" style="display: none;width: 100%;margin: auto; display: none;" >
			  <table class="search_table" width="100%">
			<tr>
				<td width="15%" align="center">分类代码 :</td>
				<td width="35%">
					<s:textfield name="sarchClassCd"/>
				</td>
				<td width="15%" align="center">分类名称:</td>
				<td width="35%">
					<s:textfield name="sarchClassName"/>
				</td>
			</tr>
			<tr>
				<td colspan="4" align="center">
					<input type="submit" value="" class="search_style"/>
				</td>
			</tr>
		</table> 
		</div></form>
		
		<table class="data_js_table" id="js_table">
			<tr>
				<th width="18%">分类代码 </th>
				<th width="18%">分类名称</th>
				<th width="12%">是否有效</th>
				<th width="12%">更新时间</th>
				<th width="12%">描述</th>
				<th>操作</th>
			</tr>
			<s:iterator value="page.list" var="codeClass">
				<tr>
					 <td class="VTSMA"><s:property value="#codeClass.classCd" /></td>
					 <td><s:property value="#codeClass.className" /></td>
					 <td><s:if test="#codeClass.validFlag==1">是</s:if>
								<s:else>否</s:else>
					 </td>
					 <td>
					 	<s:date name="#codeClass.updateTime" format="yyyy-MM-dd" />
					 </td>
					 <td><s:property value="#codeClass.description" /></td>
					 <td>
					 <s:if test="buttonGrpMap['add']"><a href="codeAction_list.do?classCd=<s:property value="#codeClass.classCd" />" title="添加选项">
						<img src="${contextPath}/resource/img/ico/addlist.png" class="edit_style" align="middle" alt="新增"></img>
					</a> &nbsp; &nbsp;</s:if>
					 <s:if test="buttonGrpMap['edit']"><a href="codeClassAction_edit.do?codeClass.classCd=<s:property value="#codeClass.classCd" />" title="编辑">
						<img src="${contextPath}/resource/img/ico/edit.png" class="edit_style" align="middle" alt="修改"></img>	
					</a>&nbsp;&nbsp;</s:if>
					 <s:if test="buttonGrpMap['delete']"><a href="javascript:void(0)" onclick="isPost('确认删除?','codeClassAction_delete.do?codeClass.classCd=<s:property value="#codeClass.classCd" />')" title="删除">
						<img src="${contextPath}/resource/img/ico/delete.png" class="delete_style" align="middle" alt="删除"></img>
					</a></td></s:if>
				</tr>
			</s:iterator>
		</table>
		<table class="button_table">
				<tr>
					<td  width="20%" align="left">
					<div style="">
						<s:if test="buttonGrpMap['add']">
						<input type="button"
								onclick="javascript:location='codeClassAction_add.do'"  class="add_style" value=""/>
						</s:if>
					</div>
					</td>
					<td >
						<div class="pages">
							${pageLinkList}
						</div>
					</td>
				</tr>
			</table>
		</div>
		</div>
	</body>
</html>
